GDK/Win32: Force GLES if running on ARM64
authorChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 7 May 2019 07:09:03 +0000 (00:09 -0700)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Thu, 30 Jul 2020 06:30:13 +0000 (14:30 +0800)
commita481733b400a43d34a9587b2c1d2bb1aa6d8447b
treef66556a712776fb6278e190a31b8178bda008824
parentcf0175ffcec21ebc7b74c1fc44e74437e30af840
GDK/Win32: Force GLES if running on ARM64

If GLES support is enabled on Windows, force GLES mode if we are running
on a ARM64 version of Windows (i.e. Windows 10 for ARM).

This is required as ARM64 versions of Windows only provide a software
implementation of OpenGL 1.1/1.2, which is not enough for our purposes.
Thus, we could make instead use the GLES support provided via Google's
libANGLE (which emulates OpenGL/ES 3 with Direct3D 9/11), so that we
can run GtkGLArea programs under OpenGL/ES in ARM64 versions of Windows.

Note that eventually we could update the libepoxy build files for Windows
to not check nor enable WGL when building for ARM64 Windows, as the WGL
items do not work, although they do build.
gdk/win32/gdkdisplay-win32.c
gdk/win32/gdkdisplay-win32.h
gdk/win32/gdkglcontext-win32.c